package org.cch.action;


import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class UserAction extends Action {
	
	public String login(HttpServletRequest request,HttpServletResponse response){
		try{
			String userName = request.getParameter("userName");
			String password = request.getParameter("password");
			if(userName.equals("cch")&&password.equals("123")){
				return SUCCESS;
			}
			else{
				return ERROR;
			}
		}catch(Exception e){
			e.printStackTrace();
			return ERROR;
		}
		
		
	}
}
